package com.ruoyi.system.service.impl;


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RoadMapper;
import com.ruoyi.system.domain.Road;
import com.ruoyi.system.service.IRoadService;


@Service
public class RoadServiceImpl implements IRoadService
{
    @Autowired
    private RoadMapper roadMapper;

    /**
     * 查询路况
     */
    @Override
    public Road selectRoadById(Long id)
    {
        return roadMapper.selectRoadById(id);
    }

    /**
     * 查询路况列表
     */
    @Override
    public List<Road> selectRoadList(Road road)
    {
        return roadMapper.selectRoadList(road);
    }

    /**
     * 新增路况
     */
    @Override
    public int insertRoad(Road road)
    {
        return roadMapper.insertRoad(road);
    }

    /**
     * 修改路况
     */
    @Override
    public int updateRoad(Road road)
    {
        return roadMapper.updateRoad(road);
    }

    /**
     * 批量删除路况
     */
    @Override
    public int deleteRoadByIds(Long[] ids)
    {
        return roadMapper.deleteRoadByIds(ids);
    }

    /**
     * 删除路况信息
     */
    @Override
    public int deleteRoadById(Long id)
    {
        return roadMapper.deleteRoadById(id);
    }
}
